package com.hungry.web.test;

import com.hungry.hfw.dao.BaseEntity;
import com.hungry.hfw.dao.Annotations.Entity;
import com.hungry.hfw.dao.Annotations.PrimaryKey;
import com.hungry.hfw.dao.Annotations.Volatile;

@Entity(abbreviation="u" , tableName="user")
public class User implements BaseEntity {
	
	@PrimaryKey(TYPE="AUTOGEN")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Long getActiveInd() {
		return activeInd;
	}
	public void setActiveInd(Long activeInd) {
		this.activeInd = activeInd;
	}
	public void setVolatileVariable(String volatileVariable) {
		this.volatileVariable = volatileVariable;
	}
	@Volatile
	public String getVolatileVariable() {
		return volatileVariable;
	}
	@PrimaryKey(TYPE="AUTOGEN")
	private Long userId;
	private String userName;
	private String firstName;
	private String lastName;
	private String email;
	private Long activeInd;
	@Volatile
	private String volatileVariable;
	
	@Override
	public String toString() {
		String str = "userId - " + userId + "userName - " + userName + " firstname - " + firstName + " volatile - " + volatileVariable;
		return str;
	}

}
